<script language="JavaScript" type="text/javascript">
<? sajax_show_javascript(); ?>

function logRank(upDwn,linkID,currentRank) {
	x_logRank(upDwn,linkID,currentRank,returnLogRank);
}

function returnLogRank(rankString) {
	var stringArray = rankString.split("|");
	var newRank = stringArray[0];
	var linkID  = stringArray[1];
	
	var rankBox      = 'rankBox_'+linkID;
	var rankControls = 'rankControls_'+linkID;
	var rankText     = 'rankText_'+linkID;
	document.getElementById(rankBox).innerHTML = newRank;
	document.getElementById(rankBox).className = 'rankBox rankRed';
	document.getElementById(rankControls).innerHTML = 'Thank you!';
	document.getElementById(rankText).innerHTML = '';
}

function badLink(linkID) {
	x_badLink(linkID,returnBadLink);
}

function returnBadLink(linkID) {
	document.getElementById('badLink'+linkID).style.color = '#ff6600';
	document.getElementById('badLink'+linkID).innerHTML = 'Link reported...thanks!';
}
</script>